import util from "../../../../../libs/util";
export default (_self, h) => {
    return [
        h('h' + (_self.obj.level || 3), {
            style: {
                'margin-bottom': _self.obj.marginBottom + 'px',
                'margin-top': _self.obj.marginTop + 'px',
                'margin-left': _self.obj.marginLeft + 'px',
            },
            domProps: {
                innerHTML: _self.obj.label || "Title"
            }
        })
    ]
}

export let titleConf = {
    // 是否可配置
    config: true,
    type: 'title',
    // 控件文本显示内容
    label: '标题',
    // h标签等级（1-6）
    level: 3,
    name: 'title_'+util.timeStamp(),
    hasLine: true,
    marginTop: 0,
    marginLeft: 44,
    marginBottom: 24
}
